# coding=utf-8
#================================================================
#   Copyright (C) 2020 * Ltd. All rights reserved.
#
#   File name   : test.py
#   Author      : ZouZheKang-1996
#   Created date: 2020-08-14 19:35:59
#   Description : XuQingQing,I really ❤ U！
#
#================================================================

import unittest
import env
import cv2
import numpy as np

class TestJRScrew(unittest.TestCase):

    def test_upper(self):
        self.img = cv2.imread("./img.png")
        self.assertEqual('hello'.upper(), 'HELLO')

    def test_isupper(self):
        self.assertTrue('FOO'.isupper())
        self.assertFalse('Foo'.isupper())

    def test(self):

        s = 'hello world'
        self.assertEqual(s.split(), ['hello', 'world'])
        with self.assertRaises(TypeError):
            s.split(2)

if __name__ == '__main__':
    unittest.main()